/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
import java.util.Arrays;
import java.util.Locale;

/**
 * <p>Project: javase - Dri7
 * <p>Powered by webrx On 2021-12-13 19:41:32
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Dri7 {
    public static void main(String[] args) {
        var p = "c:/uuu";
        var f = new File(p);
        // String[] ffs = f.list((path, fn) -> fn.toLowerCase().startsWith("u") && new File(path, fn).length() > 3);
        // System.out.println(Arrays.toString(ffs));

        //String[] ffd = f.list((path, fn) -> new File(path, fn).isDirectory());
        //System.out.println(Arrays.toString(ffd));

        File[] fs = f.listFiles((ff) -> ff.isFile() && ff.length() > 3);
        System.out.println(Arrays.toString(fs));
    }
}
